package com.yunao.dao;

import com.yunao.entity.Trade;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TradeRepository extends JpaRepository<Trade,Integer> {

    List<Trade> findByParentid(Integer parentid);

    Trade findByName(String name);

}
